﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="khanhdaiC.ascx.cs" Inherits="khanhdaiC" %>
<% var list = DsVeDaDat();%>
<div class="khanDaiC">
    <div class="alert alert-info" style="text-align: center;">
        Khán đài C
    </div>
<table cellpadding="0" cellspacing="0">
    <thead>
    <tr>
        <% for (int i = 0; i < 8; i++)
            { %>
            <th><%=Convert.ToChar(i+65) %></th>
        <% } %>
    </tr>
    </thead>
    <tbody>
    <% for (int i = 0; i < 35; i++)
        { %>
        <tr>
            <% for (int j = 0; j < 8; j++)
                { %>
                <td>
                <span class="gheSelected" id='<%="C"+Convert.ToChar(j+65)+(i+1).ToString() %>'><%=i+1 %></span>
                <% if (Array.Find(list, c => c.Trim() == "C" + Convert.ToChar(j + 65) + (i + 1).ToString()) != null)
                   {%>
                    <asp:Image ID="Image1" runat="server" 
                ImageUrl="images/ghe/con_trong.png" CssClass="img-polaroid" />
                <% } else { %>
                    <asp:Image ID="Image2" runat="server" 
                ImageUrl="images/ghe/khu_vuc_khac.png" CssClass="img-polaroid" />
                <% } %>
                </td>
            <% } %>
        </tr>
    <% } %>
    </tbody>
</table>
</div>